package com.cztv.vote.schedule;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.cztv.vote.service.VoteManager;

public class VotesUpdateJob {
	private static Log logger = LogFactory.getLog(VotesUpdateJob.class); 
	private   VoteManager voteManager;
	
	public void setVoteManager(VoteManager voteManager) {
		this.voteManager = voteManager;
	}


	public void execute(){
		logger.info("后台定时更新线程启动");
		voteManager.updateVotes();
		logger.info("后台定时更新线程执行完毕");
	}

}
